<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<div id="header">
  <div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <a class="brand" href="javascript:;">微信商铺管理系统</a>
        <div class="nav-collapse">
          <ul class="nav">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">店铺管理<b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="${ctx}/member/shop/">基本信息</a></li>
                <li><a href="${ctx}/member/shop/category">分类管理</a></li>
                <li><a href="${ctx}/member/shop/product">商品管理</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">消息提醒<b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="${ctx}/member/message">消息提醒</a></li>
              </ul>
            </li>
          </ul>
        <shiro:user>
          <div class="btn-group pull-right">
            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
              <i class="icon-user"></i> <shiro:principal property="name"/>
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
              <li><a href="${ctx}/member/profile">个人资料</a></li>
              <li><a href="${ctx}/member/reset-password">修改密码</a></li>
              <li><a href="${ctx}/member/logout">退出登录</a></li>
            </ul>
          </div>
        </shiro:user>
        </div><!-- /.nav-collapse -->
      </div>
    </div><!-- /navbar-inner -->
  </div>
</div>